package com.vue.power.backend.sys.service;

import com.github.pagehelper.PageHelper;
import com.vue.power.backend.common.base.dao.BaseDao;
import com.vue.power.backend.common.base.entity.Page;
import com.vue.power.backend.common.base.service.BaseService;
import com.vue.power.backend.common.util.page.PageUtil;
import com.vue.power.backend.sys.dao.DictDao;
import com.vue.power.backend.sys.entity.Dict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor={IllegalArgumentException.class})
public class DictService  extends BaseService<Dict> {

    @Autowired
    private DictDao dictDao;

    @Override
    protected BaseDao<Dict> getDao() {
        return this.dictDao;
    }

    /**
     * 功能描述：更新数据字典的状态
     * @param entity
     * @return
     */
    public int operateDict(Dict entity){
        return dictDao.operateDict(entity);
    }

}
